<include file="Public/head" title="错误" keywords="{$siteSetting['site_seo_keywords']}" description="{$siteSetting['site_seo_description']}" />

<body class="bg-white">
	<!-- MAIN -->
    <main class="x-content">
		<!-- error -->
		<div class="error-wrap">
	        <div class="error-image">
	            <img src="__TMPL__Public/assets/img/error.png" alt="" class="img-responsive">
	        </div>
		    <h2 class="error-title">&nbsp;{$messageTitle}</h2>
		    <p class="error-content">{$error}</p>
			<p class="jump">页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b></p>
		</div>
    </main>
    <!-- /MAIN -->
	
<script type="text/javascript">
(function(){
	var wait = document.getElementById('wait');
	var href = document.getElementById('href').href;
	var interval = setInterval(function(){
		var time = --wait.innerHTML;
		if(time <= 0) {
			location.href = href;
			clearInterval(interval);
		};
	}, 1000);
})();
</script>
</body>
</html>
